760931
@@ -61,8 +61,13 @@
public class MailComponent extends DefaultComponent<MailExchange> {
     @Override
     protected Endpoint<MailExchange> createEndpoint(String uri, String remaining, Map parameters) throws Exception {
 
+        URI url = new URI(uri);
+        if ("nntp".equalsIgnoreCase(url.getScheme())) {
+            throw new UnsupportedOperationException("nntp protocol is not supported");
+        }
+        
         MailConfiguration config = new MailConfiguration();
-        config.configure(new URI(uri));
+        config.configure(url);
 
         // lets make sure we copy the configuration as each endpoint can customize its own version
         MailEndpoint endpoint = new MailEndpoint(uri, this, config);
